package com.nightpiter.view.drawer.advanced;

import android.graphics.Point;

import com.nightpiter.model.objects.Line;
import com.nightpiter.model.objects.Tunnel;

/**
 * @author Dmitriy Kozorez
 */

class DrawingTunnel {

	Tunnel tunnel;
	Line line;
	Point from, to;
	float fromX, fromY, toX, toY;
	boolean singlesided;
	DrawingTunnel back;
	int correction = 0;

	DrawingTunnel(Tunnel tunnel) {

		this.tunnel = tunnel;
		this.line = tunnel.getLine();
		this.singlesided = false;
		this.back = null;

	}

	boolean isSinglesided() {
		return singlesided;
	}

	void setSinglesided(boolean singlesided) {
		this.singlesided = singlesided;
	}

	DrawingTunnel getBack() {
		return back;
	}

	void setBack(DrawingTunnel back) {
		this.back = back;
	}

	Tunnel getTunnel() {
		return tunnel;
	}

}
